package net.hn.hnms.biz.project.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.hn.hnms.biz.project.domain.ProjectBudgetDetail;
import net.hn.hnms.biz.project.domain.ProjectBudgetFile;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@ApiModel("项目预算表")
public class ProjectBudgetReq extends BaseReq{

    @ApiModelProperty(value = "id")
    private String projectBudgetId;

    @ApiModelProperty(value = "项目ID")
    private String projectId;

    @ApiModelProperty(value = "项目预算编号")
    private String budgetCode;

    @ApiModelProperty(value = "项目预算主题(标题)")
    private String budgetTitle;

    @ApiModelProperty(value = "成立时间（预算时间）")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date budgetDate;


    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "项目预算文件")
    private List<ProjectBudgetFile> projectBudgetFile;

    @ApiModelProperty(value = "项目预算明细")
    private List<ProjectBudgetDetail> projectBudgetDetail;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date startTime;
    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date endTime;

    @ApiModelProperty(value = "煤矿编码")
    private String mineCode;

}
